package service.impl;

import dao.IOrderDao;
import dao.IOrderGoodsDao;
import model.OrderGoods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import service.IOrderGoodsService;

import java.util.List;

/**
 * @aythor:侯仪澳
 * @data:2022/7/29
 */
@Service
public class OrderGoodsService implements IOrderGoodsService {
    @Autowired
    private IOrderGoodsDao orderGoodsDao;

    @Override
    public List<OrderGoods> queryOrderGoods(OrderGoods orderGoods) {
        return orderGoodsDao.queryOrderGoods(orderGoods);
    }

    @Override
    public List<OrderGoods> queryGoodsToOrder(OrderGoods orderGoods) {
        return orderGoodsDao.queryGoodsToOrder(orderGoods);
    }
}
